package com.wz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: WZ
 * @create: 2018-07-20 19:43
 **/
@RestController
public class ConsumerController {
    @Autowired
    ComputeClient computeClient;

    @RequestMapping(value="/add")
    public Integer add(@RequestParam Integer a,@RequestParam Integer b){
        return computeClient.add(a,b);
    }


}
